package com.noopsyche.auth;


import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.noopsyche.common.CoreCommonUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@MapperScan("com.noopsyche.auth.mapper")  // 扫描映射Mapper接口类
@NacosPropertySource(dataId = "noopsyche-auth", autoRefreshed = true)  // 启动Nacos配置中心
@SpringBootApplication(scanBasePackages = {"com.noopsyche.auth", "com.noopsyche.common"})
public class NoopsycheAuthApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext Application = SpringApplication.run(NoopsycheAuthApplication.class, args);
        CoreCommonUtils.printSysInfo(Application);
    }
}
